package com.medusa.gruul.payment.service.mp.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medusa.gruul.common.system.model.model.Platform;
import com.medusa.gruul.payment.api.entity.MerchantDetails;
import com.medusa.gruul.common.model.enums.PayType;
import com.medusa.gruul.payment.service.model.vo.MerchantDetailsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 *
 *
 * @author xiaoq
 * @ Description
 * @date 2022-07-14 13:29
 */
public interface MerchantDetailsMapper extends BaseMapper<MerchantDetails> {

    /**
     * 获取商户支付配置
     * @param payType 支付渠道
     * @return 商户支付配置信息VO
     */
    List<MerchantDetailsVO> getMerchantDetailInfo(PayType payType);

    /**
     * 获取商户支付配置ByPlatform
     *
     * @param  payType 支取渠道
     * @param payPlatform 支付平台
     * @return 商户支付配置信息VO
     */
    MerchantDetailsVO getMerchantDetailInfoByPlatform(@Param("payType") PayType payType, @Param("payPlatform") Platform payPlatform);
}
